package com.ruoyi.goods.service.impl;

import com.ruoyi.goods.domain.GoodsType;
import com.ruoyi.goods.mapper.GoodsTypeMapper;
import com.ruoyi.goods.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class GoodsTypeServiceImpl implements GoodsTypeService {

    @Autowired
    private GoodsTypeMapper goodsTypeMapper;

    @Override
    public List<GoodsType> queryByPage() {
        return goodsTypeMapper.queryByPage();
    }

    @Override
    public List<GoodsType> getList() {
        return goodsTypeMapper.getList();
    }

    @Override
    public int insert(GoodsType goodsType) {
        return goodsTypeMapper.insert(goodsType);
    }

    @Override
    public int update(GoodsType goodsType) {
        return goodsTypeMapper.update(goodsType);
    }

    @Override
    public int delByIds(Long[] ids) {
        return goodsTypeMapper.delByIds(ids);
    }

}
